﻿using TemplateWPF.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace TemplateWPF.Windows
{
    /// <summary>
    /// SwttingWindow.xaml 的交互逻辑
    /// </summary>
    public partial class SettingWindow : Window
    {
        SettingWindowViewModel VModel;
        public SettingWindow():this(0)
        {
        }
        public SettingWindow(int index)
        {
            InitializeComponent();
            VModel = new SettingWindowViewModel();
            this.tab_Con.SelectedIndex = index;
            this.DataContext = VModel;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            mysqltxt_Psw.Password = Properties.Settings.Default.MySqlPassword;
        }
    }
}
